package me.jessyan.mvparms.demo.mvp.model.logic.api;

/**
 * request:
 * *  1. 歌曲开始播放时回调(要携带以下参数:歌曲名称,歌手名字,歌曲总时长,当前播放模式,歌曲封面 url)
 * *  2. 歌曲暂停/停止播放回调
 * *  3. 歌曲恢复播放回调
 * *  4. 歌曲实时播放进度回调(每秒回调1次)(要携带以下参数:歌曲总时长,当前播放时间)
 * *  5. 播放模式变化回调
 */
public class BusServerData {



    /**
     * 示例数据结构
     * <p>
     * music
     * {
     * name:"冰雨",
     * singer:"刘德华",
     * timeLength:"00:05:32",
     * mode:"单曲循环",
     * status:"",
     * duration:"",
     * }
     */
    private Music music;

    public Music getMusic() {
        return music;
    }

    public void setMusic(Music music) {
        this.music = music;
    }

    public static class Music {
        private String name;
        private String singer;
        private String timeLength;
        private String mode;
        private String status;
        private String url;
        private long duration;



        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSinger() {
            return singer;
        }

        public void setSinger(String singer) {
            this.singer = singer;
        }

        public String getTimeLength() {
            return timeLength;
        }

        public void setTimeLength(String timeLength) {
            this.timeLength = timeLength;
        }

        public String getMode() {
            return mode;
        }

        public void setMode(String mode) {
            this.mode = mode;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }


        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public long getDuration() {
            return duration;
        }

        public void setDuration(long duration) {
            this.duration = duration;
        }

        @Override
        public String toString() {
            return "Music{" +
                    "name='" + name + '\'' +
                    ", singer='" + singer + '\'' +
                    ", timeLength='" + timeLength + '\'' +
                    ", mode='" + mode + '\'' +
                    ", status='" + status + '\'' +
                    ", url='" + url + '\'' +
                    ", duration='" + duration + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "BusServerData{" +
                "music=" + music +
                '}';
    }


}


